package day8;

import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class code2 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int m = in.nextInt();
        int nm = gbc(n,m);
        System.out.println((long)n*m/nm);
    }
    public static int gbc(int n,int m){
        if(m == n){
            return m;
        }
        if(n < m){
            int temp = n;
            n = m;
            m = temp;
        }
        int r;
        while((r=(n % m))>0){
            n = m;
            m = r;
        }
        return m;
    }
}
